package com.pi.pro.xcmg.am.was.edi.infor.dto.req;

import com.pi.pro.xcmg.am.common.XcmgAmConstants;
import com.pi.pro.xcmg.am.was.edi.infor.common.InforWasXcmgExchangeConstants;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 *  库存查询/Object
 */
@Getter
@Setter
public class StorageQueryObjectDto implements Serializable {

    //系统来源	source	string	Y	系统来源：LKWCS1、LKWCS2、LKWCS3，1期立库目前固定传LKWCS1
    private String source = InforWasXcmgExchangeConstants.INFOR_MAP_WH101_WMS_CODE;

    //仓库号	whseid	NVARCHAR2(10)	Y	固定传 WMWHSE25
    private String whseid = InforWasXcmgExchangeConstants.INFOR_MAP_WH101_WAREHOUSER_ID;

    //系统来源：LKWCS1、LKWCS2、LKWCS3，1期立库目前固定传LKWCS1
    //private String source = InforWasXcmgExchangeConstants.INFOR_MAP_WH101_WMS_CODE;

    //物料编码	sku	NVARCHAR2(10)	N	物料编码
    private String sku = "";

    //库位编码	loc	NVARCHAR2(10)	Y	WMS库位编码，立库固定传LK01S
    private String loc = InforWasXcmgExchangeConstants.INFOR_MAP_WH101_LOCATION_CODE;

    //WAS临时使用
    private String suppliercode="";


    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("{");
        //
        buf.append("source:");
        if (this.source != null) {
            buf.append(this.source);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("whseid:");
        if (this.whseid != null) {
            buf.append(this.whseid);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("sku:");
        if (this.sku != null) {
            buf.append(this.sku);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("loc:");
        if (this.loc != null) {
            buf.append(this.loc);
        } else {
            buf.append("");
        }
        buf.append("");
        buf.append("}");
        return buf.toString();
    }
}
